import pytest,time,logging,unittest
from selenium import webdriver
from Page import Page

@pytest.fixture()
def driver():
    driver = webdriver.Edge()
    yield driver
    driver.quit()

def test_01(driver):
    try:
        po = Page(driver)
        po.luoji_01()
    except Exception as e:
        t = time.strftime('%Y%m%d%H%M%S')
        driver.save_screenshot(t + '.png')
        print(e)